package com.dhl.cloud.course.service;

import com.dhl.cloud.course.dao.SummaryMapper;
import com.dhl.cloud.course.entity.Summary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SummaryService {
    @Autowired
    private SummaryMapper summaryMapper;


    public int saveSummary(Summary summary) {
        return summaryMapper.insert(summary);
    }


    public Summary getSummaryByLession(Integer lessionid) {
        return summaryMapper.getSummaryByLession(lessionid);
    }
}